import uniqueId from '@form-create/utils/lib/unique'
import { localeProps } from '../../utils'

const label = '动画选择器'
const name = 'DkAnimateSelect'

export default {
  menu: 'high',
  icon: 'icon-park:tv-one',
  label,
  name,
  event: ['blur', 'focus', 'change', 'input', 'clear'],
  rule() {
    return {
      type: name,
      field: uniqueId(),
      title: '动画',
      info: '',
      $help: '',
      $required: false,
      props: {}
    }
  },
  props(_, { t }) {
    return localeProps(t, name + '.props', [])
  }
}
